package com.rongc.client.freight.business.waybill.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.core.utils.StringUtils;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.business.waybill.model.WayBillList;


/*
*  运单接口
* */

public class HostWayBillSJApi extends AbsRequest<HostWayBillSJApi.HostWayBillSJParams, WayBillList> {

    public HostWayBillSJApi(HostWayBillSJParams feedbackParams, Listener<WayBillList> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getHostWayBillSJUrl(), feedbackParams, listener, errorListener, WayBillList.class);
    }

    public static class HostWayBillSJParams extends BaseParams {

        public HostWayBillSJParams(String userId,String page) {
            put("userId",userId);
            put("page",page);
        }

        public HostWayBillSJParams(String userId,String page,String status) {
            put("userId",userId);
            put("page",page);
            if(StringUtils.isNotEmpty(status))
                put("status",status);
        }
    }


}
